package com.snut.tomorrowNews.dao.back;

import com.snut.tomorrowNews.model.News;
import com.snut.tomorrowNews.model.NewsType;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Deevan
 */
public interface NewsDao {

    List<News> newsList();

    List<NewsType> newsTypeList();

    void insertNews(News news);

    void deleteNewsById(Integer id);

    void deleteCollectByNewsId(@Param("newsId") Integer id);

    List<String> findTypeName();

    List<Integer> countByTypeList();

    News getNewsById(@Param("id") Integer newsId);
}
